package com.pipayshop.mapper;

import com.pipayshop.entity.UserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pipayshop.entity.vo.UserInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户数据表 Mapper 接口
 * </p>
 *
 * @author kk
 * @since 2024-09-08
 */
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    UserInfoVO selectUserInfoByUid(String userName);

    String getItemIdByUserId(@Param("userId")String userId);

    /**
     * 查找可以新增的实体店的数量
     */
    Integer selectShopNumber(@Param("uid") String uid);


    UserInfo selectByUserId(@Param("id") Long userId);
}
